export function setTabbar() {
	const user = uni.getStorageSync('user');
	if(user.recyclerType === '1') {
		uni.setTabBarItem({
			index: 0,
			visible: true
		});
		uni.setTabBarItem({
			index: 1,
			visible: true
		});
		uni.setTabBarItem({
			index: 2,
			visible: false
		});
		uni.setTabBarItem({
			index: 3,
			visible: false
		});
	}
	if(user.recyclerType === '2') {
		uni.setTabBarItem({
			index: 0,
			visible: false
		});
		uni.setTabBarItem({
			index: 1,
			visible: false
		});
		uni.setTabBarItem({
			index: 2,
			visible: true
		});
		uni.setTabBarItem({
			index: 3,
			visible: true
		});
	}
}

export function getTabbarHeight(){
	return uni.getSystemInfoSync().windowBottom;
}